Use description instead of shortnmae when -Sn.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 11 Oct 2009 01:50:09 +0000 (01:50 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 11 Oct 2009 01:50:09 +0000 (01:50 +0000)
gpsbabel/lmx.c

index 69b041a16edcb1c9f61cb5cff74e3075c35e81f6..f40762b78b15f52174fed9a6e2b0837c53f84473 100644 (file)
@@ -77,7 +77,7 @@ lmx_print(const waypoint *wpt)
 {      
        gbfprintf(ofd, "    <lm:landmark>\n");
        if (wpt->shortname) {
-               lmx_write_xml(4, "lm:name", wpt->shortname);
+               lmx_write_xml(4, "lm:name", global_opts.synthesize_shortnames ? wpt->description : wpt->shortname);
        }
        if (wpt->description) {
                lmx_write_xml(4, "lm:description", wpt->description);